export { default as Socket } from "./scoket";
export { default as EventBus } from "./eventBus";
export { default as RequestService } from "./request";
export * from "./cookie";

import request from "./request";
import type { BaseOptions } from "./request";

export const isFormData = (value: FormData) => {
	return value instanceof FormData || Object.prototype.toString.call(value) === "[object FormData]";
};

export const createRequest = (options: BaseOptions) => {
	console.log("options", options);
	return new request(options);
};
